<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<body>
    <table border="1px" align="center">
        <tr>
            <th>id</th>
            <th>姓名</th>
            <th>余额</th>
        </tr>
        {foreach $data as $k => $v}
            <tr>
                <td>{$v.id}</td>
                <td>{$v.name}</td>
                <td>{$v.money}</td>
            </tr>
        {/foreach}
    </table>
    <a href="{:url('excel')}">点击下载</a>
</body>
</html>